﻿using System;
using System.Collections.Generic;

namespace eCommerce.db.DataRespository
{
    public class CustomerEntity
    {
        public int CustomerId { get; set; }
        public int StoreId { get; set; }        
        public string ContactName { get; set; }
        public string Password { get; set; }
        public string Mobile { get; set; }
        public string Email { get; set; }
        public string Address { get; set; }
        public string Description { get; set; }
        public DateTime CreatedOn { get; set; }
        public DateTime EditedOn { get; set; }
        public bool IsActive { get; set; }

        public int ItemIndex  { get; set; }
        public string TotalOrderAndMoney { get; set; }
        public string IconStatus { get; set; }

        private readonly Dictionary<string, object> _extendedProperties = new Dictionary<string, object>();
        public object this[string propertyName]
        {
            get
            {
                return (_extendedProperties.ContainsKey(propertyName) ? _extendedProperties[propertyName] : null);
            }
            set
            {
                if (_extendedProperties.ContainsKey(propertyName))
                {
                    _extendedProperties[propertyName] = value;
                }
                else
                {
                    _extendedProperties.Add(propertyName, value);
                }
            }
        }
    }
}
